
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
import os
driver = webdriver.Chrome()
url = 'file:///C:/Users/1/Desktop/qd/5.14/radio-checkbox.html'
driver.get(url)
driver.maximize_window()
time.sleep(2)
inputlist = driver.find_elements(By.XPATH,'//input')
print(len(inputlist))
inputlist[0].click()
print(inputlist[0].is_selected())
for i in range(3,6):
    inputlist[i].click()
print(inputlist[-1].is_selected())
